package controllers

import (
	"github.com/gin-gonic/gin"
	"kuaixinwen/models"
	"net/http"
)

func GetUserList(c *gin.Context){
	name := c.PostForm("name")
	age := c.PostForm("age")

	res := models.GetUserList(name, age)

	c.JSON(http.StatusOK, gin.H{"data":res})
}
